<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="commons/taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="${ctx }/static/css/pintuer.css">
<script type="text/javascript" src="${ctx }/static/js/jquery-1.8.2.min.js"></script>
<title>系统信息</title>
<style type="text/css">
*{ margin:0px; padding:0px;}
.error-container{ background:#fff; border:1px solid #0ae;  text-align:center; width:450px; margin:250px auto; font-family:Microsoft Yahei; padding-bottom:30px; border-top-left-radius:5px; border-top-right-radius:5px;  }
.error-container h1{ font-size:16px; padding:12px 0; background:#0ae; color:#fff;} 
.errorcon{ padding:35px 0; text-align:center; color:#0ae; font-size:18px;}
.errorcon i{ display:block; margin:12px auto; font-size:30px; }
.errorcon span{color:red;}
h4{ font-size:14px; color:#666;}
a{color:#0ae;}
</style>
<html lang="zh-CN">
</head>
<body class="no-skin">
<div class="error-container"> 
	<input type="hidden" id="acc" value="${acc}"/>
    <h1> 后台管理系统-信息提示 </h1>   
    <div class="errorcon">     
       <span id="t"><i class="icon-smile-o"></i>操作成功</span>
        
        <span id="f" style="display:none;"><i class="icon-frown-o"></i>操作失败!</span>
  
   </div>
   <input type="hidden" id="url" value="${url}" />
   
    <h4 class="smaller"><a href="${url }">手动跳转</a><span id="jumpTo">3</span>秒后页面自动跳转...</h4> 
   
</div>

<script type="text/javascript">

(function(){
		var acc = document.getElementById("acc").value;
		var url = document.getElementById("url").value;
		console.log(acc);
		console.log(url);
		if(acc=="false") {
			$("#t").css({"display":"none"});
			$("#f").css({"display":"block"});
		}
			 var i = $('#jumpTo').text();
			
			 
			 var times = setInterval(function(){
				i--;
				$('#jumpTo').text(i);
				if(i==0){
					clearInterval(times);          //倒计时跳转页面
					location.href=url;
				}
			},1000); 
			 var times1 = setInterval(function(){
					clearInterval(times1);
					window.parent.myrefresh();     //刷新index.jsp页面 ，但必须设置三秒时间，否则会立即刷新，导致“倒计时跳转页面”不能正常显示
			},3000); 
			  
			 }    
		
)();
</script>



</body>
</html>